// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import vueResource from 'vue-resource'
// import MintUI from 'mint-ui'
import FastClick from 'fastclick'
import Element from 'element-ui'
//css
import 'mint-ui/lib/style.css'
import 'element-ui/lib/theme-chalk/index.css';
// ajax
Vue.use(vueResource)
Vue.use(Element)
// ui
// Vue.use(MintUI)

Vue.config.productionTip = false

if ('addEventListener' in document) {
    document.addEventListener('DOMContentLoaded', function() {
        FastClick.attach(document.body);
    }, false);
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
